﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace winpacklib
{
    /// <summary>
    /// Represents instance of package on one repository
    /// </summary>
    public class ServerPackage
    {
        public String name;
        public Platform platform;
        public Version version;
        public String displayName;
        public Uri uri;
        public Category category;

        public override string ToString()
        {
            return name + "_" + platform.ToString().ToLower() + "_" + version.ToString();
        }
    }

    /// <summary>
    /// Global package with list of repositories
    /// </summary>
    public class Package : ServerPackage
    {
        public List<Repository> Repositories = new List<Repository>();
    }
}
